Skip to content

Conversation

@devcrocod
Copy link
Contributor

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds release automation for client and server components by configuring JReleaser and adding a GitHub Actions workflow for publishing to Maven Central Portal.

  • Configures JReleaser with GitHub release settings that skip tag/release creation
  • Adds a GitHub Actions workflow for building and publishing client and server modules
  • Sets up automated publication to Maven Central with proper GPG signing and authentication

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
buildSrc/src/main/kotlin/mcp.jreleaser.gradle.kts Adds GitHub release configuration to skip tagging and release creation
.github/workflows/publish-client-and-server.yml New workflow for automated publishing of client and server to Maven Central

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

skipRelease = true
skipTag = true
overwrite = false
token = "none"
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a hardcoded 'none' token value could cause authentication issues. Consider using a proper environment variable or removing this line if GitHub token authentication is handled elsewhere.

Suggested change
token = "none"
token = System.getenv("GITHUB_TOKEN")

Copilot uses AI. Check for mistakes.
Comment on lines +44 to +45
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These environment variables duplicate the JRELEASER_GPG_SECRET_KEY and JRELEASER_GPG_PASSPHRASE variables already set above. Consider removing the duplicates to reduce configuration redundancy.

Copilot uses AI. Check for mistakes.
JRELEASER_GPG_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
Copy link

Copilot AI Sep 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These environment variables are duplicated again in the publish step. The JRELEASER_* prefixed versions should be sufficient for JReleaser operations.

Suggested change
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}

Copilot uses AI. Check for mistakes.
@devcrocod devcrocod merged commit d9a3fa3 into main Sep 11, 2025
4 checks passed
@devcrocod devcrocod deleted the devcrocod/skip-github-release branch September 11, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants